package org.example.car.system.service.impl;

import org.example.car.system.domain.Post;
import org.example.car.system.mapper.PostMapper;
import org.example.car.system.service.PostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: cy
 * @Date: 2024/6/24 20:31
 */
@Service
public class PostServiceImpl implements PostService {

    @Autowired
    private PostMapper postMapper;

    @Override
    public List<Post> selectAll() {
        return postMapper.selectAll();
    }

    @Override
    public boolean insertPost(Post entity) {
        return postMapper.insertPost(entity);
    }

    @Override
    public boolean delPost(Integer id) {
        return postMapper.delPost(id);
    }

    @Override
    public boolean updatePost(Post entity) {
        return postMapper.updatePost(entity);
    }
}
